<?php
TImport('product');

$childhome      = ListCatChildHome();
function ListCatChildHome()
{
    global $dbsql,$language;
    
    $sql_select = "select cImage from tblbackground where cType='home' ";
    return $dbsql->load($sql_select);
    
}
function ListCatProductHOme()
{
    global $dbsql,$language;
    
    $sql_select = "select * from tblproduct_category where iHasHighLine = 1 and iStatus=1 order by iOrder";
    return $dbsql->load($sql_select);
}

function ListProductHOme($idP)
{
    global $dbsql,$language;
    
    $sql_select = "select * from tblproduct where iParentId=$idP and iStatus=1 order by iOrder limit 3";
    return $dbsql->load($sql_select);
}
?>